﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CatMouseMaster
{
    delegate void ActionEvent();
    class Cat:Living
    {
        public event ActionEvent cryEvent;
        public Cat(string name) : base(name) { }
        public void cry()
        {
            Console.WriteLine("{0} 喵喵叫", name);
            if (cryEvent != null) cryEvent();
        }
    }
}
